<?php

class Download 
{
	public static function get($url)
	{
	    if(stristr($url, "http://"))
    	{
    		header("Location: $url");
    		
    		exit;
    	}
    	else 
    	{
	    	header("Content-disposition: attachment; filename=$url");
	    	
	    	readfile($url);
	    	
	    	exit;
    	}
	}
}

?>
